package com.ysx.teacher.day20210909.ch01;

import com.ysx.teacher.day20210907.Student;

import java.util.ArrayList;

public class Ch01 {

    public static void main(String[] args) {

        int[] array = new int[2];
        array[0]=10;
        //array[1]="20";
        //array[2]=20;
        System.out.println(array);

        // 现在你就简单地把ArrayList当做1个高级版的数组[数组的长度没有限制]
        //Student student =new Student();
        ArrayList arrayList = new ArrayList();
        arrayList.add(10);
        arrayList.add("20");
        arrayList.add(30);
        System.out.println(arrayList);

        int rs = (int)arrayList.get(0);

        String abc="aaKitty";
        boolean jieguo =abc.endsWith("kitty");
        System.out.println(jieguo);
    }
}
